package czk.jvm.lecture.classloader;

import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;

public class MyTest11 {
    public static void main(String[] args) throws IOException {
        //获得上下文类加载器，通常是系统加载器
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        String resource="czk/jvm/lecture/classloader/MyTest9.class";
        Enumeration<URL> resources = classLoader.getResources(resource);
        while (resources.hasMoreElements()){
            URL url = resources.nextElement();
            System.out.println(url);
        }
    }
}
